package com.qijian.business.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.business.domain.KrWorkFeed;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 工单对象
 *
 * @author qijian
 * @date 2024-02-27
 */

@Data
@ToString
public class KrWorkFeedVo extends KrWorkFeed{
    @ApiModelProperty("物料规格")
    private String itemSpec;

    @ApiModelProperty("成品物料规格")
    private String endItemSpec;

    @ApiModelProperty("成品物料名称")
    private String endItemName;

    @ApiModelProperty("成品物料编码")
    private String endItemCode;

    @ApiModelProperty("是否存在子级")
    private Boolean hasChildren;

    @ApiModelProperty("合并后卡号")
    private String mergCardNo;

    @ApiModelProperty("报工数量")
    private BigDecimal qty;

    @ApiModelProperty("件号")
    private String partNo;

    @ApiModelProperty("单位")
    private String itemUnits;

    @ApiModelProperty("种类")
    private String itemType;

    @ApiModelProperty("图号")
    private String drawingNo;

    @ApiModelProperty("订单号")
    private String number;

    @ApiModelProperty("工单号")
    private String orderNo;

    @ApiModelProperty("本炉号出库数量")
    private BigDecimal curInventoryOutQty;

    @ApiModelProperty("炉号")
    private String actualHeadNo;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("库存表id")
    private Long inventoryId;


    private BigDecimal useQty;

    @ApiModelProperty("出库时间")
    private String inventoryUpdateTime;

    @ApiModelProperty("二维码")
    private String dimensionalBarcode;

    @ApiModelProperty("铝挤批次号")
    private String alBatchNumber;

    @ApiModelProperty("内部件号")
    private String internalNumber;

    private String originalItemCode;

    @ApiModelProperty(value = "原料名称")
    private String originalItemName;

    private String remark;

    private String compositeBatch;

    @ApiModelProperty("可派工数量")
    private BigDecimal availableQty;

    @ApiModelProperty("是否质检")
    private Boolean isInventoryExamine;

    @ApiModelProperty("将重量分开")
    private String complexUseQty;

    @ApiModelProperty("派工单数据id")
    private Long dispatchId;

    @ApiModelProperty("库存id")
    private Long sdInventoryId;

    private Boolean isBack;

    private Boolean needIqc;

    private Integer backCount;

    private String nfcCarId;
}
